package com.aispeech.testcustom.utils;

import android.content.Context;
import android.os.Build;
import android.os.Environment;

import java.io.File;

/**
 * Created by rain on 2016/12/11.
 */
public class SystemUtils {


    public static File getExternalCacheDir(Context context) {

        return Build.VERSION.SDK_INT >= 8 && "mounted".equals(Environment.getExternalStorageState
                ()) ? context.getExternalCacheDir() : null;
    }
}